Cyber Security Project Report
This project demonstrates the deployment of a centralized log management solution using Splunk Enterprise and Docker technology. It covers the end-to-end process of installing Docker on a Linux environment, deploying Splunk within a containerized environment, and configuring log file ingestion. The project further explores the practical application of Splunk's Search Processing Language (SPL) to read, analyze, and visualize system logs for cybersecurity monitoring purposes.
In the realm of modern cybersecurity, visibility is paramount. Organizations generate massive amounts of machine data daily. Two critical technologies that facilitate the management and analysis of this data are Docker and Splunk.
Docker is an open-source platform that enables developers to build, deploy, run, update, and manage containers—standardized, executable components that combine application source code with the operating system (OS) libraries and dependencies required to run that code in any environment.
Splunk is a powerful platform for searching, monitoring, and analyzing machine-generated big data via a Web-style interface. It captures, indexes, and correlates real-time data in a searchable repository from which it can generate graphs, reports, alerts, dashboards, and visualizations.
The following steps outline the installation of Docker on an Ubuntu Linux system.
Shows output of 'docker --version' and active status
Download the .deb package from the official Splunk website (requires account creation).
During this step, you will be prompted to create an administrator username and password.
Shows 'The Splunk web interface is available at http://hostname:8000'
Running Splunk inside a Docker container is a cleaner, more efficient method for testing and development environments.
This command maps port 8000 (Web UI) and sets the admin password.
Output of 'docker ps' showing running Splunk container
To analyze data, we must first ingest logs into Splunk. We configured Splunk to monitor a specific local directory.
Open browser and navigate to http://localhost:8000. Login with created credentials.
/var/log/syslog (or any target log file).
Splunk automatically detects the format, but for custom logs, we can define line breaking and timestamps in
props.conf.
Screenshot of Splunk Web UI 'Add Data' wizard
Once data is indexed, we use the Search & Reporting app to query the logs.
Finding failed login attempts or error messages:
We created a dashboard panel to visualize the frequency of log events over time.
Visual representation of log analysis results
This project successfully demonstrated the deployment of a robust log management infrastructure using Docker and Splunk. By containerizing the Splunk instance, we achieved a portable and isolated environment suitable for security testing. The successful ingestion and querying of log files prove the efficacy of this setup for identifying security incidents and operational issues within a network environment.